/*
 * @ : Copyright (c) 2021 Phytium Information Technology, Inc. 
 *  
 * SPDX-License-Identifier: Apache-2.0.
 * 
 * @Date: 2021-07-09 08:08:39
 * @LastEditTime: 2021-08-11 08:51:51
 * @Description:  This files is for 
 * 
 * @Modify History: 
 *  Ver   Who        Date         Changes
 * ----- ------     --------    --------------------------------------
 */

#include <stdio.h>
#include "sdkconfig.h"
#include "ft_types.h"

#ifndef CONFIG_USE_NOR_QSPI
#error "Please include nor qspi componet first!!"
#endif

int main()
{
#ifdef CONFIG_QSPI_READ_ID
    extern void NorFlashReadIDTest();
    NorFlashReadIDTest();
#endif

#ifdef CONFIG_QSPI_READ_SR
    extern void NorFlashReadSrTest();
    NorFlashReadSrTest();
#endif

#ifdef CONFIG_QSPI_READ_MEM
    extern void NorFlashReadMemTest();
    NorFlashReadMemTest(FALSE);
#endif

    printf("test finish\r\n");
    return 0;
}